package org.example.user.facade;

import org.example.api.user.request.UserPageQueryRequest;
import org.example.api.user.request.UserRegisterRequest;
import org.example.api.user.response.UserOperatorResponse;
import org.example.api.user.response.UserQueryResponse;
import org.example.api.user.response.data.UserInfo;
import org.example.api.user.serivce.UserFacadeService;
import org.example.base.response.PageResponse;
import org.example.user.domain.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

public class UserFacadeServiceImpl implements UserFacadeService {

    @Autowired
    private UserService userService;

    @Override
    public UserQueryResponse<UserInfo> query(UserQueryResponse userQueryResponse) {
        return null;
    }

    @Override
    public PageResponse<UserInfo> pageQuery(UserPageQueryRequest userPageQueryRequest) {
        return null;
    }

    @Override
    public UserOperatorResponse register(UserRegisterRequest userRegisterRequest) {
        return userService.register(userRegisterRequest.getTelephone(),userRegisterRequest.getInviteCode());
    }
}
